    import Vue from "vue";
import VueRouter from "vue-router";
import Login from '@/views/Login.vue'
import Home from '@/views/home.vue'
    import demo from "@/views/demo.vue";
    import shop from "@/views/shop.vue";
    import Content4_1 from "@/views/Content4_1.vue";
    import Logintwo from "@/views/Logintwo.vue";
Vue.use(VueRouter)

const router=new VueRouter({
    routes:[
        { path:'/',redirect:'/Logintwo'},
        { path:'/Logintwo',component:Logintwo},
        { path:'/demo',component:demo},
        {
            path: '/home',
            component: Home,
            children: [
                {
                    path: '/content1_1', component: shop
                },
                {
                    path: '/content3_1', component: shop
                },
                {
                    path: '/content4_1', component: Content4_1
                }
            ]
        }
    ]
})

export default router